public class test_12_2 {

    public static void main(String[] args) {
        MySingleList mySingleList = new MySingleList();
        mySingleList.createLink();
        mySingleList.display();
        System.out.println("-------------------");
        System.out.println(mySingleList.contains(90));
        System.out.println(mySingleList.size());
        System.out.println("-----------------");
        mySingleList.addLast(1);
        mySingleList.addLast(2);
        mySingleList.addLast(3);
        mySingleList.addLast(3);
        try {
            mySingleList.addIndex(4,100);
        }catch (ListIndexOutOfException e) {
            e.printStackTrace();
        }
        mySingleList.display();
        System.out.println("--------------------");
        mySingleList.removeAllKey(3);
        mySingleList.display();
    }


}




